﻿@model Mestedur.ViewModels.QuestionRadioViewModel
@{
    ViewBag.Title = "GetTestRadio";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<h4><a href="/MainPage/Index"> Главная страница </a>/<a href="/Education/GetChapter/@ViewData["ChapterId"]"> @ViewData["Chapter"]</a>/Тест</h4>
<div class="text"> 
<h3>Тест</h3>
 
 
            <form action="/Test/AcceptAnswerForRadio">
            <input type="text" name="questionInQuizId" value="@Model.Id" style="visibility:hidden"/>
                
           
                <h2>@Html.LabelFor(x => x.Text):</h2>
                    <div class ="frameofquastion">
                        <div class ="textofquastion">
                            @Html.DisplayTextFor(x => x.Text)
                        </div>
                    </div>

                <h2>@Html.LabelFor(x => x.Answers):</h2>
                    <div class ="frameofanswer">
                        <div class ="textofanswer">
                        
                         @foreach (var item in Model.Answers)
                         {
                             
                             <p><input type="radio" name="answerId" value="@item.id"/>@item.Text</p>
                         }
                     
                    <div class ="button">
                        <input type="submit" value="Принять ответ">
                    </div>
            
           
      
        </form>
         </div>
